package com.tjbank.cssys.mybatis.entity;

import java.io.Serializable;

/**
 * IamSequence
 * 
 * @author PG(Auto Generator)
 * @version V1.0
 */
public class IamSequence extends IamSequenceKey implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /**  [10,0] */
    protected Integer currval;
    /**  [10,0] */
    protected Integer increment;
    /**  [50,0] */
    protected String prefix;
    /**  [10,0] */
    protected Integer digitcapacity;

    public IamSequence() {
        super();
    }

    public IamSequenceKey primaryKey() {
        return new IamSequenceKey(id);
    }

    /** 取值 <==  [10,0] */
    public Integer getCurrval() {
        return currval;
    }

    /** 赋值 ==>  [10,0] */
    public void setCurrval(Integer currval) {
        this.currval = currval;
    }

    /** 取值 <==  [10,0] */
    public Integer getIncrement() {
        return increment;
    }

    /** 赋值 ==>  [10,0] */
    public void setIncrement(Integer increment) {
        this.increment = increment;
    }

    /** 取值 <==  [50,0] */
    public String getPrefix() {
        return prefix;
    }

    /** 赋值 ==>  [50,0] */
    public void setPrefix(String prefix) {
        this.prefix = prefix == null ? null : prefix.trim();
    }

    /** 取值 <==  [10,0] */
    public Integer getDigitcapacity() {
        return digitcapacity;
    }

    /** 赋值 ==>  [10,0] */
    public void setDigitcapacity(Integer digitcapacity) {
        this.digitcapacity = digitcapacity;
    }

    /** 浅克隆 */
    @Override
    public IamSequence clone() {
        IamSequence cloneIamSequence = null;
        try {
            cloneIamSequence = (IamSequence) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneIamSequence;
    }

    @Override
    public String toString() {
        return "IamSequence [id = " + id + ", currval = " + currval + ", increment = " + increment + ", prefix = "
                + prefix + ", digitcapacity = " + digitcapacity + "]";
    }
}